package verschiebespiel;

import javax.servlet.ServletRequest;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

public class RequestListener implements ServletRequestListener
{


  public RequestListener() 
  {}

@Override
public void requestDestroyed(ServletRequestEvent arg0) {
System.out.println("RequestListener:  Request zerst�rt");
	
}

@Override
public void requestInitialized(ServletRequestEvent arg0) {
	ServletRequest request = arg0.getServletRequest();
	String ziffer = request.getParameter("ziffer");
	System.out.println("RequestListener: request initialisiert");
	if ( ziffer != null ) System.out.println("RequestListener: "+ ziffer);
	else System.out.println("RequestListener:  Ziffer undefiniert");
	
} 

 
}